<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>&nbsp;&nbsp;&nbsp;个人信息</title>
    <link href="<?php echo (CSS_URL); ?>personInfo.css" rel="stylesheet" type="text/css">
    <link href="<?php echo (CSS_URL); ?>bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
    <?php if(is_array($personInfo)): $i = 0; $__LIST__ = $personInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$Info): $mod = ($i % 2 );++$i;?><div class="left_panel">
            <div class = "show_img">
                <img src="<?php echo (IMG_URL); ?>bee2.jpg">
                <div class ="personal-info">
                    <p class = "nick-name"><?php echo ($Info["nick_name"]); ?></p>
                    <p class = "signature"><?php echo ($Info["sign"]); ?></p>
                    <span>我的资料：</span>
                </div>
            </div>
        </div>
        <div class = "right_form">
            <form class="form-horizontal" method="post" action="/honeystore/index.php/Home/User/personInfo">
                <input type="hidden" value="<?php echo (session('u_id')); ?>" name = "u_id">
                <input type="hidden" value="update" name = "type">
                <div class="form-group">
                    <label class="col-sm-2 control-label">账号 :</label>
                    <div class="col-sm-4">
                       <span class = "user_info"><?php echo ($Info["u_name"]); ?></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">ID :</label>
                    <div class="col-sm-4">
                        <span class = "user_info"><?php echo ($Info["u_id"]); ?></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="nick_name">昵称 :</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="nick_name" value="<?php echo ($Info["nick_name"]); ?>" name="nick_name">
                    </div>
                </div>
                <div class = "form-group">
                    <label class="col-sm-2 control-label" for="male">性别: </label>
                    <label class = "radio-inline radio_button">
                        <input type="radio" name="sex" id="male" value="男" checked>男
                    </label>
                    <label class = "radio-inline">
                        <input type="radio" name="sex" id="female" value="女">女
                    </label>
                    <label class = "radio-inline">
                        <input type="radio" name="sex" id="secret" value="就不告诉你">就不告诉你
                    </label>
                </div>
                <div class="form-group">
                    <label for="inputPhone" class="col-sm-2 control-label">联系电话: </label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="inputPhone" value="<?php echo ($Info["u_phone"]); ?>" name = "u_phone">
                    </div>
                </div>
                <div class="form-group">
                    <label for="e-mail" class="col-sm-2 control-label">邮箱: </label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="e-mail" value="<?php echo ($Info["email"]); ?>" name = "email">
                    </div>
                </div>
                <div class="form-group">
                    <label for="sign" class="col-sm-2 control-label">个性签名: </label>
                    <div class="col-sm-4">
                        <textarea class="form-control" rows="3" id="sign" placeholder="请输入不多于50个字" name="sign"><?php echo ($Info["sign"]); ?></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">保存</button>
                    </div>
                </div>
            </form>
        </div><?php endforeach; endif; else: echo "" ;endif; ?>
</body>
</html>